import Vue from 'vue'
// import {Select,Input,Button,Form,FormItem,Card,Checkbox,Icon,Tabs,TabPane} from 'view-design';
// import ViewUI from 'view-design';
import {
  Select,
  Option,
  Input,
  Button,
  Form,
  FormItem,
  Card,
  Checkbox,
  Icon,
  Tabs,
  TabPane,
  Alert
} from 'element-ui';
import App from '../view/popup.vue';

// import 'view-design/dist/styles/iview.css';
// Vue.use(ViewUI);
Vue.component('Select', Select);
Vue.component('Option', Option);
Vue.component('Input', Input);
Vue.component('Button', Button);
Vue.component('Form', Form);
Vue.component('FormItem', FormItem);
Vue.component('Card', Card);
Vue.component('Checkbox', Checkbox);
Vue.component('Icon', Icon);
Vue.component('Tabs', Tabs);
Vue.component('TabPane', TabPane);
Vue.component('Alert', Alert);

if (window.self === window.top) {// 只在顶层注入
  new Vue({
    render: (h) => h(App)
  }).$mount(document.getElementById("appPlugin"))
}
